﻿<UserControl x:Class="personalplaner.databasewizard.views.StatusView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:p="clr-namespace:personalplaner.databasewizard.Properties"
             xmlns:c="clr-namespace:personalplaner.common.controls;assembly=personalplaner.common"
             xmlns:v="clr-namespace:personalplaner.databasewizard.views">
    
    <Control.Resources>
        <Style TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="FontSize" Value="11"/>
        </Style>
    </Control.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <TextBlock Text="{x:Static p:Resources.Status}" FontSize="22" FontWeight="Thin" Foreground="#E1000000" Margin="50,-5,0,15"/>

        <Grid Grid.Row="1">
            <TextBlock Text="{Binding LogonModel.SelectedDatabase}" TextWrapping="Wrap" FontWeight="Thin" FontSize="15" Margin="200,20,80,20"/>
        </Grid>

        <Grid Grid.Row="2" Margin="200,0,60,20">
            <Border CornerRadius="1" BorderBrush="#FF888888" BorderThickness="1">
                <!--<c:VisualWrapper Name="statusListWrapper" />-->
                <ListBox ItemsSource="{Binding Output, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type v:StatusView}}}" ScrollViewer.HorizontalScrollBarVisibility="Disabled"/>
            </Border>
        </Grid>
        
    </Grid>
</UserControl>
